<template>
  <!--  template中书写组建的结构-->
  <el-container style="height: 100%">
    <!--    侧边栏-->
    <el-aside width="auto">
      <common-aside></common-aside>
    </el-aside>

    <el-container>
      <!--      头部-->
      <el-header>
        <common-header></common-header>
      </el-header>
      <!--      中间文件区-->
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
// script中书写组件交互相关的代码(数据、方法等)
import CommonAside from '../components/CommonAside'
import CommonHeader from "@/components/CommonHeader";

export default {
  name: "Home",
  // 注册子组件
  components: {CommonAside, CommonHeader},
  data() {
    return {
      name: 'home'
    }
  }
}
</script>

<style lang="less" scoped>
/*style书写组建的样式*/
.el-header {
  background-color: #333333;
}

.el-main {
  padding-top: 0;
}
</style>